import http from 'utils/http'
import * as type from './type'

const actionCreators = {
    get_food_health () {
        return async dispatch => {
        const result = await http ({
                url:'/tuan-wys/food-health/data.json'
            })
            const action = {
                type:type.GETFOODHEALTH,
                payload:result.data
            }
            dispatch( action )
        }
    }
}

export default actionCreators